import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/index",
    },
    {
      path: "/index",
      name: "index",
      component: () => import("@/views/index-view.vue"),
      children:[
        {
          path: "/index/heros",
          name: "heros",
          component: () => import("@/views/content/hero-view.vue"),
        },
        {
          path: "/index/equipments",
          name: "equipments",
          component: () => import("@/views/content/equipment-view.vue"),
        },
        {
          path: "/index/recommend",
          name: "recommend",
          component: () => import("@/views/content/recommend-view.vue"),
        }
      ]
    },
  ],
});

export default router;
